package com.study.model.pojo;

import java.io.Serializable;
import javax.persistence.*;
import java.math.BigDecimal;


/**
 * The persistent class for the deliverdetails database table.
 * 
 */
@Entity
@Table(name="deliverdetails")
@NamedQuery(name="Deliverdetail.findAll", query="SELECT d FROM Deliverdetail d")
public class Deliverdetail implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@Column(name="ded_id")
	private int dedId;

	@Column(name="ded_nonum")
	private int dedNonum;

	@Column(name="ded_price")
	private BigDecimal dedPrice;

	@Column(name="ded_sumprice")
	private BigDecimal dedSumprice;

	@Column(name="ded_yesnum")
	private int dedYesnum;

	@Column(name="ded_date")
	private int dedDate;
	
	@Column(name="ded_money")
	private int dedMoney;

	//bi-directional many-to-one association to Deliveryschedule
	@ManyToOne
	@JoinColumn(name="ds_id")
	private Deliveryschedule deliveryschedule;

	//bi-directional many-to-one association to Dictionary
	@ManyToOne
	@JoinColumn(name="ded_state")
	private Dictionary dictionary;

	//bi-directional many-to-one association to Good
	@ManyToOne
	@JoinColumn(name="goo_id")
	private Good good;

	//bi-directional many-to-one association to Orderdetail
	@ManyToOne
	@JoinColumn(name="od_id")
	private Orderdetail orderdetail1;


	public Deliverdetail() {
	}

	public int getDedId() {
		return this.dedId;
	}

	public void setDedId(int dedId) {
		this.dedId = dedId;
	}

	public int getDedNonum() {
		return this.dedNonum;
	}

	public void setDedNonum(int dedNonum) {
		this.dedNonum = dedNonum;
	}

	public BigDecimal getDedPrice() {
		return this.dedPrice;
	}

	public void setDedPrice(BigDecimal dedPrice) {
		this.dedPrice = dedPrice;
	}

	public BigDecimal getDedSumprice() {
		return this.dedSumprice;
	}

	public void setDedSumprice(BigDecimal dedSumprice) {
		this.dedSumprice = dedSumprice;
	}

	public int getDedYesnum() {
		return this.dedYesnum;
	}

	public void setDedYesnum(int dedYesnum) {
		this.dedYesnum = dedYesnum;
	}

	public Deliveryschedule getDeliveryschedule() {
		return this.deliveryschedule;
	}

	public void setDeliveryschedule(Deliveryschedule deliveryschedule) {
		this.deliveryschedule = deliveryschedule;
	}

	public Dictionary getDictionary() {
		return this.dictionary;
	}

	public void setDictionary(Dictionary dictionary) {
		this.dictionary = dictionary;
	}

	public Good getGood() {
		return this.good;
	}

	public void setGood(Good good) {
		this.good = good;
	}

	public Orderdetail getOrderdetail1() {
		return this.orderdetail1;
	}

	public void setOrderdetail1(Orderdetail orderdetail1) {
		this.orderdetail1 = orderdetail1;
	}

	public int getDedDate() {
		return dedDate;
	}

	public void setDedDate(int dedDate) {
		this.dedDate = dedDate;
	}

	public int getDedMoney() {
		return dedMoney;
	}

	public void setDedMoney(int dedMoney) {
		this.dedMoney = dedMoney;
	}

	@Override
	public String toString() {
		return "Deliverdetail [dedId=" + dedId + ", dedNonum=" + dedNonum + ", dedPrice=" + dedPrice + ", dedSumprice="
				+ dedSumprice + ", dedYesnum=" + dedYesnum + ", dedDate=" + dedDate + ", dedMoney=" + dedMoney + "]";
	}


	
	


}